
#include "SwitchIN.h"
#include "LED.h"
#include "LowPower.h"
#include "Taskhandler.h"
#include "LCD.h"
#include "Battary.h"
#include "Logic.h"
#include "Wireless.h"
#include "VibrationDriver.h"
#include "Vibration.h"




int main(void)
{
       
	unsigned long int dlx = 2000;
	while(dlx--);
	SystemCLKConfigure();
     	VibrationOnlyreadTestSPI();
	// VibrationTestSPI();
#if 0
	WirelessInitPara();
	
	//while(1)
	{
    	   WirelessTestSPI();
    	}
    	while(1)
    	{
	    	dlx++;
		if (dlx > 500000L)
		{
			dlx = 0;
			WirelessUploadParameter();
		}
	}
#endif
	
       CallBackInit();
       RegisterCallBackHandler(LOGIC_TASK_ID,LogicInit);
     
	while(1)
	{
              SystemTaskManager();
	}
	return 1;	
}






